package com.pet.exchange;

import com.pet.entity.InvitationCollect;
import com.pet.entity.InvitationInformation;
import org.springframework.stereotype.Component;

@Component
public class PetInvitationInfoUtil {

    public String typeToStr(Integer typeId){
        if (typeId == null) return null;
        return switch (typeId) {
            case 1 -> "公益活动";
            case 2 -> "科学养宠";
            case 3 -> "发声墙";
            case 4 -> "日常";
            default -> "其他";
        };
    }
}
